package com.mall4j.cloud.product.model;

import com.mall4j.cloud.common.model.BaseModel;

import java.io.Serializable;

/**
 * 商品扩展信息
 *
 * @author JCM
 * @date 2021-04-27 15:33:00
 */
public class SpuExtension extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     *
     */
    private Long spuExtendId;

    /**
     * spuId
     *
     */
    private Long spuId;

    /**
     * 销量
     *
     */
    private Integer saleNum;

    /**
     * 实际库存
     *
     */
    private Integer actualStock;

    /**
     * 锁定库存
     *
     */
    private Integer lockStock;

    /**
     * 可售卖库存
     *
     */
    private Integer stock;

    public Long getSpuExtendId() {
        return spuExtendId;
    }

    public void setSpuExtendId(Long spuExtendId) {
        this.spuExtendId = spuExtendId;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Integer getActualStock() {
        return actualStock;
    }

    public void setActualStock(Integer actualStock) {
        this.actualStock = actualStock;
    }

    public Integer getLockStock() {
        return lockStock;
    }

    public void setLockStock(Integer lockStock) {
        this.lockStock = lockStock;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return "SpuExtension{" +
                "spuExtendId=" + spuExtendId +
                ", spuId=" + spuId +
                ", saleNum=" + saleNum +
                ", actualStock=" + actualStock +
                ", lockStock=" + lockStock +
                ", stock=" + stock +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
